const express = require("express");
const app = express();

// 解决夸区域问题
const cors = require("cors");
const bodyParser = require("body-parser");
const router = require("./router");

app.use(cors());
app.use(
  bodyParser.urlencoded({
    extended: true,
  })
);

app.use("/api", router);

// 调用3000端口
app.listen(3000, () => {
  console.log(3000);
});
